TextRunInfo

data class TextRunInfo(val from: Int, val to: Int, val text: String, val color: Color, val fontWeight: FontWeight, val fontStyle: FontStyle, val fontSize: Float, val textCase: TextCase, val typeface: Typeface, val resolvedFontFileUri: String, val textDecoration: TextDecorationConfig, val kerning: Float)

Represents a single contiguous text run with uniform formatting.

Each run covers a range of grapheme clusters [from, to) within the text block.

Constructors

Link copied to clipboard
constructor(from: Int, to: Int, text: String, color: Color, fontWeight: FontWeight, fontStyle: FontStyle, fontSize: Float, textCase: TextCase, typeface: Typeface, resolvedFontFileUri: String, textDecoration: TextDecorationConfig, kerning: Float)

Properties

Link copied to clipboard

The text color.

Link copied to clipboard

The font size in points.

Link copied to clipboard

The font style.

Link copied to clipboard

The font weight.

Link copied to clipboard
val from: Int

Start grapheme index (inclusive).

Link copied to clipboard

Additional kerning offset in em units.

Link copied to clipboard

The resolved font file URI.

Link copied to clipboard

The text content of this run.

Link copied to clipboard

The text case transformation.

Link copied to clipboard

The text decoration configuration of this run.

Link copied to clipboard
val to: Int

End grapheme index (exclusive).

Link copied to clipboard

The typeface used by this run.